To make sure the full stacktrace is printed out, use the logging statement with 2 arguments: a String and a Throwable.

<p>
  This rule is deprecated, use {rule:java:S1166} instead.
</p>
